<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <meta name="keywords" content="<?php echo ((isset($article["title"]) && ($article["title"] !== ""))?($article["title"]):'个人博客,insertSweat,技术博客,HTML,PHP,MYSQL'); ?>">
  <meta name="description" content="<?php echo ((isset($article["about"]) && ($article["about"] !== ""))?($article["about"]):'insertSweat Blog,是一个分享技术书写心情的博客'); ?>">
  <link rel="shortcut icon" href="/Public/img/favicon.ico">
  <link rel="stylesheet" href="/Public/css/bootstrap.min.css">
  <link rel="stylesheet" href="/Public/css/flat-ui.min.css">
  <link rel="stylesheet" href="/Public/css/app.css">
  <link rel="stylesheet" href="/Public/css/github.css">
  <!--[if lt IE 9]>
    <script src="/Public/js/vendor/html5shiv.js"></script>
    <script src="/Public/js/vendor/respond.min.js"></script>
  <![endif]-->
  <script type="text/javascript">
  (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
          bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
          bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
  })();
  </script>
  <title>随遇而安blog</title>
</head>
<body>
  <!-- Static navbar -->
  <div class="navbar navbar-default navbar-fixed-top header" role="navigation">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="sr-only">Toggle navigation</span>
        </button>
        <a class="navbar-brand" href="//blog.muzishg.com">InsertSweat</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li ><a href="//blog.muzishg.com">首页</a></li>
          <li class="dropdown">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">文章<b class="caret"></b></a>
            <ul class="dropdown-menu">
              <?php if(is_array($cates)): foreach($cates as $key=>$v): ?><li><a href="/articles/cid/<?php echo ($v["id"]); ?>.html"><?php echo ($v["name"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
          </li>
          <li ><a href="/works.html">我的作品</a></li>
          <li><a href="/about.html">关于我</a></li>
          <li><a href="/msgpad.html">留言簿</a></li>
        </ul>
        <div class="navbar-form navbar-right " id="search" role="search">
         <div class="form-group">
           <div class="input-group">
             <input class="form-control" type="search"placeholder="Search">
             <span class="input-group-btn">
               <button  class="btn"><span class="fui-search"></span></button>
             </span>
           </div>
         </div>
       </div>
      </div><!--/.nav-collapse -->
    </div>
  </div>
  <!--end navbar  -->